// password field like this
<input type="password" name="password"/>
// matching field like this
//{field}_confirmation
<input type="password" name="password_confirmation"/>
//validation rule
'password' => 'required|min:6|max:25|confirmed',
$this->validate($request, [
'name' => 'required|min:3|max:50',
'email' => 'email',
'vat_number' => 'max:13',
'password' => 'required|confirmed|min:6',
]);